import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class HttpService {

  constructor() { }

  getData(bol: boolean){
    return new Promise(function(reslove, reject){
      if(bol){
        reslove({
          success: true
        });
      }else{
        reject({
          success: false
        })
      }
    })
  }
}
